<p>
    <span *ngFor="let star of stars; let i = index" 
    class="starrating glyphicon glyphicon-star" 
    [class.glyphicon-star-empty]="!star"
    (click)="fillStarsWithColor(i)">
    </span>
    <span *ngIf="rating">{{rating | number : '.0-2'}} stars</span>
</p>